/*
 * Copyright (c) ShaoxiongDu <Shaoxiong.dev@aliyun.com> 2021 all Rights Reserved
 */

package zh.codegym.task.task10.task1015;

import java.util.ArrayList;

/* 
字符串列表数组
*/

public class Solution {
    public static void main(String[] args) {
        ArrayList<String>[] arrayOfStringList = createList();
        printList(arrayOfStringList);
    }

    public static ArrayList<String>[] createList() {
        //在此编写你的代码int [] n = new int[];
        ArrayList<String>[] arrayListArray = new ArrayList[3];

        for (int i = 0; i < arrayListArray.length; i++) {

            arrayListArray[i] = new ArrayList<>();
            for (int j = 0; j < 10; j++) {
                arrayListArray[i].add(String.valueOf(j + 1));
            }

        }
        return arrayListArray;
    }

    public static void printList(ArrayList<String>[] arrayOfStringList) {
        for (ArrayList<String> list : arrayOfStringList) {
            for (String s : list) {
                System.out.println(s);
            }
        }
    }
}